﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QYmall.Core.Model.ViewModels
{
    /// <summary>
    /// 订单收款关联
    /// </summary>
    public class OrderCollectionRelationDto
    {
        /// <summary>
        /// 自增ID
        /// </summary>
        [Display(Name = "自增ID")]
        public long Id { get; set; }

        /// <summary>
        /// 所属收款ID
        /// </summary>
        [Display(Name = "所属收款")]
        public long CollectionId { get; set; }

        /// <summary>
        /// 所属订单ID
        /// </summary>
        [Display(Name = "所属订单")]
        public long OrderId { get; set; }
    }

    /// <summary>
    /// 订单收款关联(收款关联)
    /// </summary>
    public class OrderCollectionRelationViewDto
    {
        /// <summary>
        /// 自增ID
        /// </summary>
        [Display(Name = "自增ID")]
        public long Id { get; set; }

        /// <summary>
        /// 所属收款ID
        /// </summary>
        [Display(Name = "所属收款")]
        public long CollectionId { get; set; }

        /// <summary>
        /// 所属订单ID
        /// </summary>
        [Display(Name = "所属订单")]
        public long OrderId { get; set; }

        /// <summary>
        /// 收款信息
        /// </summary>
        public OrderCollectionViewDto? Collection { get; set; }
    }

    /// <summary>
    /// 订单收款关联(订单关联)
    /// </summary>
    public class OrderCollectionRelationShowDto
    {
        /// <summary>
        /// 自增ID
        /// </summary>
        [Display(Name = "自增ID")]
        public long Id { get; set; }

        /// <summary>
        /// 所属收款ID
        /// </summary>
        [Display(Name = "所属收款")]
        public long CollectionId { get; set; }

        /// <summary>
        /// 所属订单ID
        /// </summary>
        [Display(Name = "所属订单")]
        public long OrderId { get; set; }

        /// <summary>
        /// 订单信息
        /// </summary>
        public OrdersDto? Order { get; set; }
    }
}
